import request from "../request";

// 查询所有信息
export const all = () => {
    return request({
        url: `/pl/interfacecon/all`,
        method: 'GET'
    })
}
// 查询一个信息
export const one = (code: String) => {
    return request({
        url: `/pl/interfacecon/one?code=${code}`,
        method: 'GET'
    })
}

// 分页列表
export const pageList = (params: object) => {
    return request({
        url: "/pl/interfacecon/pageList",
        method: 'POST',
        data: params
    })
}

// 添加信息
export const insert = (params: object) => {
    return request({
        url: "/pl/interfacecon/insert",
        method: 'POST',
        data: params
    })
}

// 更新信息
export const update = (params: object) => {
    return request({
        url: "/pl/interfacecon/update",
        method: 'POST',
        data: params
    })
}

// 删除信息
export const remove = (params: object) => {
    return request({
        url: "/pl/interfacecon/remove",
        method: 'POST',
        data: params
    })
}

export default {
    all, one, pageList, insert, update, remove
}